const path = require('path')

const resolve = require('rollup-plugin-node-resolve')
const commonjs = require('rollup-plugin-commonjs')
const inputPath = path.resolve(__dirname,'./src/index.js')
const outputPath = path.resolve(__dirname,'./dist/datav.js')
const vue = require('rollup-plugin-vue')
const postcss = require('rollup-plugin-postcss')
const babel = require('rollup-plugin-babel')
console.log('inputPathqwe',inputPath)
module.exports = {
    input: inputPath,
    output:{
        file:outputPath,
        format:'umd',
        name:'datavLibs',
        globals:{
            vue:'Vue'
        }
    },
    plugins:[
        vue(),

        resolve(),
        commonjs(),
        babel({
            exclude:'node_modules/**'
        }),

        postcss({
            plugins:[]
        })
    ],
    external:[
        'vue','sam-test-data'
    ]

}